= render :partial => "breadcrumb", :locals => { :action => '商品信息' }
- content_for :sidebar do
  = render :partial => "sidebar"

- if !@product
  .alert 没有这个商品
- else 
  %span{:class => 'label label-info'}详细信息
  %table.table.table-bordered.table-striped
    %thead
      %tr
        %th{:style => 'width:80px;'} 商品名称
        %td= @product.name
      %tr
        %th 商品价格
        %td= @product.price

  %ul.inline
    %li= link_to '编辑', edit_admin_product_path(@product), {:class => 'btn btn-mini'}
    %li= button_to '删除', admin_product_path(@product), :class => 'btn btn-danger btn-mini', :method => :delete, :data => {:confirm => 'really?'}
    %li= link_to '继续添加', new_admin_product_path, {:class => 'btn btn-success btn-mini'}
    


